<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>${fns:getConfig('productName')}</title>

	<%@ include file="/WEB-INF/views/include/head.jsp"%>
	<script src="${ctxStatic}/common/inspinia.js?v=3.2.0"></script>
	<script src="${ctxStatic}/common/contabs.js"></script> 
    <script type="text/javascript">
	$(document).ready(function() {
		 if('${fns:getDictLabel(cookie.theme.value,'theme','默认主题')}' == '天蓝主题'){
			    // 蓝色主题
			        $("body").removeClass("skin-2");
			        $("body").removeClass("skin-3");
			        $("body").addClass("skin-1");
		 }else  if('${fns:getDictLabel(cookie.theme.value,'theme','默认主题')}' == '橙色主题'){
			    // 黄色主题
			        $("body").removeClass("skin-1");
			        $("body").removeClass("skin-2");
			        $("body").addClass("skin-3");
		 }else {
			 // 默认主题
			        $("body").removeClass("skin-2");
			        $("body").removeClass("skin-3");
			        $("body").removeClass("skin-1");
		 };
	 });
			
	</script>

</head>

<body class="fixed-sidebar full-height-layout gray-bg">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu" style="font-size: 13px">
                    <li class="nav-header">
                        <div class="dropdown profile-element" style="margin:-8px 0px -8px 8px">
                            <span style="margin: 0px 30px 0px 0px"><img alt="image" class="img-circle" style="height:64px;width:70px;" src="${fns:getUser().photo }" /></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#" style="float: right;margin: -45px 25px 10px 30px;background-color: #2a3a53">
                                <span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold">${fns:getUser().name}</strong></span>
                               <span class="text-muted text-xs block">${fns:getUser().roleNames}<b class="caret"></b></span>
                                </span>
                            </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li><a class="J_menuItem" href="${ctx}/sys/user/imageEdit">修改头像</a>
                                </li>
                                <li><a class="J_menuItem" href="${ctx }/sys/user/info">个人资料</a>
                                </li>
                            </ul>
                        </div>
                        <div class="logo-element">JP
                        </div>
                    </li>
     
                  <t:menu  menu="${fns:getTopMenu()}"></t:menu>
            
                 
             

                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0;background-color: #3c8dbc;width: 100%;height: 50px">
                    <div class="navbar-header" style="height: 50px;margin-top: -1px"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " style="background-color: #3c8dbc;border: 1px solid #2789a3" href="#"><i class="fa fa-bars"></i> </a>
                        <form role="search" class="navbar-form-custom" method="post" action="search_results.html">
                            <div class="form-group" style="font-size: 28px;margin-top: 0px;line-height: 50px;text-indent: 2em;/*text-align: center;*/letter-spacing:10px;color: #fff;display: block;width: 400%;">
                               <%-- <input type="text" style="font-size: 20px;width: auto"  value="${fns:getConfig('productName')}" class="form-control" name="top-search" id="top-search">--%>
                               ${fns:getConfig('productName')}
                            </div>

                        </form>
                   </div>
                       <ul class="nav navbar-top-links navbar-right">
                            <%--<li>
                                <span class="m-r-sm text-muted welcome-message">欢迎使用${fns:getConfig('productName')}.</span>
                            </li>--%>
                           <%-- <li class="dropdown">
                                <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                    <i class="fa fa-envelope"></i>  <span class="label label-warning"></span>
                                </a>

                            </li>--%>
                            <li class="dropdown">
                                <%--<a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                    <i class="fa fa-bell"></i>  <span class="label label-primary"></span>
                                </a>--%>
                                    <a href="${ctx}/logout" onclick="return confirmx('确认要退出吗？', this.href)" style="color: #fff;background-color: #3c8dbc;margin-right: 10px;height: 50px" ><i class="fa fa fa-sign-out" style="color: #fff;"></i> 退出</a>

                            </li>

                      </ul>

               </nav>
                      
                   
                </nav>
            </div>
            <div class="row content-tabs" style="height: 25px;">
                <button class="roll-nav roll-left J_tabLeft" style="height: 30px;margin-top: -8px"><i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs" style="line-height: 25px">
                    <div class="page-tabs-content">
                        <a href="javascript:;" class="active J_menuTab" data-id="${ctx}/home">首页</a>
                    </div>
                </nav>
            <%--    <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
                </button>--%>
              <%--  <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose"  data-toggle="dropdown">关闭操作<span class="caret"></span>

                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a>
                        </li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div>--%>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="${ctx}/home" frameborder="0" data-id="${ctx}/home" seamless></iframe>
            </div>

            <div class="footer" style="margin-top: 28px">
                <div class="center">${fns:getConfig('productName')} &copy; 2015-2025</div>
            </div>
        </div>
        <!--右侧部分结束-->
    </div>
</body>

<script type="text/javascript">

function changeStyle(){
   $.get('${pageContext.request.contextPath}/theme/ace?url='+window.top.location.href,function(result){   window.location.reload();});
}

</script>




</html>